package com.xiaoq.distribution.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaoq.distribution.entity.AgreementEntity;
import com.xiaoq.distribution.repository.IAgreementRepository;
import com.xiaoq.distribution.service.IAgreementService;
import com.xiaoq.vo.PagingVo;

@Service
public class AgreementServiceImpl implements IAgreementService {
	
	@Autowired
	private IAgreementRepository agreementRep;

	@Override
	public boolean save(AgreementEntity agree) {
		return agreementRep.save(agree);
	}

	@Override
	public AgreementEntity findById(String id) {
		return agreementRep.findById(id);
	}

	@Override
	public List<AgreementEntity> findByShopId(String shopId, PagingVo pvo) {
		return agreementRep.findByShopId(shopId, pvo);
	}

}
